.msgAreaCommon() {
  box-sizing: border-box;
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.2rem;
  border-radius: 0.2rem;
  font-size: 0.95rem;
  position: relative;
  word-break: normal;
  word-break: break-all;
}

.nameCommon() {
  font-size: 0.8rem;
  font-weight: 500;
  color: #646c7e;
}


.itemCommon() {
  box-sizing: border-box;
  display: flex;
  padding: 0.7rem;
}

.msgAreaSCommon(){
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 0.5rem solid transparent;

  border-bottom: 0.5rem solid transparent;
  position: absolute;
}
.ItemMsgOther {
  .itemCommon();

  .left {
    .avatar {
      width: 3rem;
      border-radius: 0.2rem;
    }
  }

  .right {
    box-sizing: border-box;
    margin-left: 0.8rem;

    .name {
      .nameCommon()

    }

    .msgArea {
      .msgAreaCommon();
      background: #fff;

    }

    .msgArea:before {
      .msgAreaSCommon();
      border-right: 0.5rem solid #fff;
      left: -0.5rem;
    }
  }

}

.ItemMsgSelf {
  .itemCommon();

  .left {
    .avatar {
      width: 3rem;
      border-radius: 0.2rem;
    }
  }

  .right {
    flex: 1;
    box-sizing: border-box;
    margin-right: 0.8rem;
    margin-left: 0;

    .name {
      text-align: right;
      .nameCommon()
    }

    .msgArea {
      margin-top: 0.2rem;
      text-align: right;
      position: relative;
      .msgWarp {
        text-align: left;
        display: inline-block;
        background: #fff;
        padding: 0.5rem;
        border-radius: 0.2rem;
        word-break: normal;
        word-break: break-all;
        font-size: 0.95rem;
      }
    }

    .msgArea:after {
      .msgAreaSCommon();
      border-left: 0.5rem solid #fff;
      right: -0.5rem;
      top: 0.6rem;
    }
  }
}